// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './vuex'
import MintUI from 'mint-ui'
import etZhuge from './util/etZhuge'
import 'mint-ui/lib/style.css'
import 'vue2-animate/dist/vue2-animate.min.css'
import axios from './util/request'
Vue.config.productionTip = false
let version = '1.0.2'
console.log('当前版本' + version)

// 诸葛io初始化
etZhuge.zhugeinit()
Vue.use(MintUI)
// window.zhuge.load('700a639b4ec0421188762c155c49b73b', {
//   autoTrack: false,
//   singlePage: true,
//   visualizer: false,
//   debug: false
// })
if (process.env.NODE_ENV === 'development') {
  // Vue.prototype.$debugToken = 'E53FBA3ABD959E06EFEF1E21E4F7B3CE'
  window.zhuge.load('700a639b4ec0421188762c155c49b73b', {
    autoTrack: false,
    singlePage: true,
    visualizer: false,
    debug: true
  })
} else if (process.env.NODE_ENV === 'production') {
  window.zhuge.load('700a639b4ec0421188762c155c49b73b', {
    autoTrack: false,
    singlePage: true,
    visualizer: false,
    debug: false
  })
}
// Vue.prototype.$debugToken = 'E53FBA3ABD959E06EFEF1E21E4F7B3CE' // 'BD35613A62F2BF3FE3DB0FDA23FB9F24' //
/* eslint-disable no-new */
Vue.prototype.axios = axios
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
